<div class="admin_side">
  <div class="admin_side-inner">
    <a href="javascript:;" class="side_item">
      <span class="user_avatar">
      <% if (user.avatar) {%>
        <img src="<%= user.avatar %>" alt="<%= user.name %>">
      <% } else {%>
        <span class="icon icon-user"></span>
      <%}%>
      </span>
      <span class="user_name"><%- user.name %></span>
    </a>
    <a href="/admin/posts" class="side_item <%- active == 'posts' ? 'active': '' %>">文章</a>
    <% if (user.privilege == 1) { %>
    <a href="/admin/movies" class="side_item <%- active == 'movies' ? 'active': '' %>">电影</a>
    <a href="/admin/banner" class="side_item <%- active == 'banner' ? 'active': '' %>">Banner编辑</a>
    <% } %>
    <a href="/admin/set" class="side_item <%- active == 'set' ? 'active': '' %>">设置</a>
    <a href="/" class="side_item">主页</a>
  </div>
</div>